package com.design_pattern.decorator;

import com.peng.GameObject;

import java.awt.*;

public class CircleBulletDecorator extends GODecorator {

    public CircleBulletDecorator(GameObject gameObject) {
        super(gameObject);
    }

    @Override
    public void paint(Graphics g) {
        System.out.println("circle。。。");
//        this.x = super.go.x;
//        this.y = super.go.y;
//        this.width = super.go.getWidth();
//        this.height = super.go.getHeight();
//        Color color = g.getColor();
//        g.setColor(Color.RED);
//        g.drawLine(this.x, this.y, this.x + this.width + 20, this.y + this.height + 20);
//        g.setColor(color);
        super.go.paint(g);
    }
}
